// custom-tab-bar/index.js
const app = getApp()

Component({

  /**
   * 页面的初始数据
   */
  data: {
    // 判断苹果11及以上型号手机
    isIphoneX:  wx.getSystemInfoSync().safeArea.top > 20 && wx.getSystemInfoSync().model.indexOf('iPhone') > -1 ? true : false,
    selected:0,
    tabbar: {
      "backgroundColor": "#ffffff",
      "color": "#888888",
      "selectedColor": "#00AE97",
      "list": [
        {
          "pagePath": "/pages/home/main/index",
          "iconPath": "/static/img/tabbar/icon_menu_unindex.png",
          "iconClass":"iconshouye-line",
          "selectIconClass":"iconshouye-solid",
          "selectedIconPath": "/static/img/tabbar/icon_menu_index.png",
          "text": "首页"
        },
        {
          "pagePath": "/pages/Featured/main/index",
          "iconPath": "/static/img/tabbar/icon_menu_unselect.png",
          "selectedIconPath": "/static/img/tabbar/icon_menu_select.png",
          "iconClass": "iconfaxian-line",
          "selectIconClass": "iconfaxian-solid",
          "text": "精选"
        },
        {
          "pagePath": "/pages/real/homepage/index",
          "iconClass":"iconfaxian-line",
          "selectIconClass":"iconfaxian-solid",
          "iconPath": "/static/img/tabbar/real_noact.png",
          "selectedIconPath": "/static/img/tabbar/real_act.png",
          "text": "实景"
          // "isSpecial": true
        },
        {
          "pagePath": "/pages/afflatus/main/index",
          "iconPath": "/static/img/tabbar/icon_menu_uninspiration.png",
          "selectedIconPath": "/static/img/tabbar/icon_menu_inspiration.png",
          "iconClass": "icongonglve-line",
          "selectIconClass": "icongonglve-solid",
          "text": "灵感"
        },
        {
          "pagePath": "/pages/mine/main/index",
          "iconPath": "/static/img/tabbar/tabbar_mine_normal.png",
          "selectedIconPath": "/static/img/tabbar/tabbar_mine_select.png",
          "iconClass": "icongeren-line_",
          "selectIconClass": "icongeren-solid",
          "text": "我的"
        }
      ]
    }
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  show(){
    console.log('我来了....')
  }


})